package cn.edu.neusoft.yyd208.foodorder.model;

import java.util.List;

import cn.edu.neusoft.yyd208.foodorder.bean.FoodBean;
import cn.edu.neusoft.yyd208.foodorder.iface.FoodListIface;
import cn.edu.neusoft.yyd208.foodorder.listener.ListListener;
import cn.edu.neusoft.yyd208.foodorder.service.Service;
import retrofit2.Call;
import retrofit2.Retrofit;



public class SearchModel extends RetrofitBaseModel implements FoodListIface<FoodBean> {
    private Service service;
    private Retrofit retrofit;

    public SearchModel() {
        retrofit=getRetrofit();
    }

    @Override
    public void getFoodMessage(String Shop_id, ListListener<FoodBean> listListener1) {
        service=getService();
        Call<List<FoodBean>> call = service.research(Shop_id);
        callenqueueList(call,listListener1);
    }

   /* @Override
    public void research(String search, ListListener<FoodBean> listListener1) {

    }*/
}
